package org.budo.support.lang.util;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Proxy;

/**
 * Proxy.newProxyInstance
 * 
 * @author lmw
 */
public class ReflectProxyUtil {
    public static <T> T newProxyInstance(Class<T> interfaceType, InvocationHandler invocationHandler) {
        return (T) Proxy.newProxyInstance(ReflectProxyUtil.class.getClassLoader(), new Class[] { interfaceType }, invocationHandler);
    }
}